<?php

namespace common\models\user;

use Yii;

/**
 * This is the model class for table "{{%user_account_abnorm}}".
 *
 * @property int $id
 * @property int $account_id 账户ID
 * @property int $user_id 用户ID
 * @property int $type 账户类型
 * @property string $mark 异常原因
 * @property string $data 异常时账户信息
 * @property int $admin_id 操作员ID
 * @property int $status 异常状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class UserAccountAbnorm extends \common\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%user_account_abnorm}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['account_id', 'user_id', 'type', 'admin_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['data'], 'string'],
            [['mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'account_id' => '账户ID',
            'user_id' => '用户ID',
            'type' => '账户类型',
            'mark' => '异常原因',
            'data' => '异常时账户信息',
            'admin_id' => '操作员ID',
            'status' => '异常状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
